import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const documentManager: AppRouteModule = {
  path: '/document-manager',
  name: 'document-manager',
  component: LAYOUT,
  redirect: '/document-manager/GlobalParameters',
  meta: {
    orderNo: 3,
    icon: 'ant-design:file-protect-outlined',
    title: t('routes.document-manager.document-manager'),
  },
  children: [
    {
      path: 'GlobalParameters',
      name: 'GlobalParameters',
      component: () => import('@/views/document-manager/GlobalParameters/index.vue'),
      meta: {
        title: t('routes.document-manager.GlobalParameters'),
      },
    },
    {
      path: 'OffLineDocument',
      name: 'OffLineDocument',
      component: () => import('@/views/document-manager/OffLineDocument.vue'),
      meta: {
        title: t('routes.document-manager.OffLineDocument'),
      },
    },
    {
      path: 'Settings',
      name: 'Settings',
      component: () => import('@/views/document-manager/Settings.vue'),
      meta: {
        title: t('routes.document-manager.Settings'),
      },
    },
  ],
};

export default documentManager;
